<?php
	include_once("login.php");
	
	$conn = new mysqli($host,$user,$passwd, $database)
	or die("SQL connect error: ".mysqli_connect_error());
	
	$name = $_REQUEST["name"];
	$categoryId = $_REQUEST["categoryId"];
	$userId = $_REQUEST["userId"];
	
	$query = "INSERT INTO category (categoryId, name, userId) VALUES ($categoryId, '$name', $userId)";
	print $query;
	mysqli_query($conn, $query);
	
	mysqli_close($conn);
?>